<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title>修改</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link href="/study/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet"> 
   	  <script src="/study/Public/bootstrap/js/jquery.min.js"></script>
      <script src="/study/Public/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div style="margin-left: 400px;"><h1>修改用户</h1></div>
<?php if(is_array($aa)): $k = 0; $__LIST__ = $aa;if( count($__LIST__)==0 ) : echo "暂时没有数据" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($k % 2 );++$k;?><form class="form-horizontal" role="form" action="userUpdate" method="post"  enctype="multipart/form-data">

	<input type="hidden" name="id" value="<?php echo ($vo["id"]); ?>"></input>
 
    <div class="form-group ">
        <label for="username" class="col-md-2 control-label">用户名：</label>
        <div class="col-md-5">
            <input type="text" class="form-control" id="username" name="username" placeholder="username" value="<?php echo ($vo["username"]); ?>">
        </div>
    </div>
    <div class="form-group">
        <label for="pass"class="col-md-2 control-label">真实姓名</label>
        <div class="col-md-5">
            <input type="text" class=" form-control " id="pass" name="realname" placeholder="password" value="<?php echo ($vo["realname"]); ?>">
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="col-md-2 control-label">邮箱 </label>
        <div class="col-md-5">
            <input class="form-control" id="email" name="email" value="<?php echo ($vo["email"]); ?>" >
        </div>
    </div>
    <div class="form-group">
        <label for="text" class="col-md-2 control-label">电话 </label>
        <div class="col-md-5">
            <input class="form-control" id="email" name="tele" value="<?php echo ($vo["tele"]); ?>" >
        </div>
    </div>
    <div class="form-group">
        <label for="text" class="col-md-2 control-label">学号 </label>
        <div class="col-md-5">
            <input class="form-control" id="email" name="num" value="<?php echo ($vo["num"]); ?>" ></input>
        </div>
    </div>
  
    <div class="form-group">
        <label for="image" class="col-md-2 control-label">头像</label>
        <div class="col-md-3">

            <img clas="img-rounded" id="image"  src="/study/Public/uploads/photo/<?php echo ($vo["photo"]); ?>" alt="..." width="50%" />
        </div>
    </div>
    <div class="form-group">
        <label for="photo" class="col-md-2 control-label">修改文件</label>
        <div class="col-md-2">
            <input type="file" id="photo" name="photo" >
           
        </div>
    </div>



    <div class="form-group">
        
    <div class="col-md-2 col-md-offset-5">
        <button type="submit" class="btn btn-default">修改用户</button>
    </div>

</form><?php endforeach; endif; else: echo "暂时没有数据" ;endif; ?>
</body>
</html>